import { GENDER } from '@/enum/user';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDto {
  @ApiProperty({ name: '用户openid', example: 'openId' })
  readonly openId?: string;

  @ApiProperty({ name: '用户昵称', example: '用户昵称' })
  readonly nickName: string;

  @ApiProperty({
    name: '用户性别',
    example: 1,
    enum: GENDER,
  })
  readonly gender?: number;

  @ApiProperty({
    name: '用户头像',
    example: 'https://dasdas.com',
  })
  avatarUrl: string;
}
